redo the gdk installed tests
authorMatthias Clasen <mclasen@redhat.com>
Wed, 18 Oct 2017 01:52:48 +0000 (09:52 +0800)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 18 Oct 2017 15:30:20 +0000 (17:30 +0200)
testsuite/gdk/gdk.test.in [new file with mode: 0644]
testsuite/gdk/meson.build

diff --git a/testsuite/gdk/gdk.test.in b/testsuite/gdk/gdk.test.in
new file mode 100644 (file)
index 0000000..709cb6a
--- /dev/null
@@ -0,0 +1,4 @@
+[Test]
+Exec=@testexecdir@/@test@ --tap -k --verbose
+Type=session
+Output=TAP
index 0694b424e05a0b8bebf0191af12c4ac23fe5b2f9..84b503daa56d8b25829b25bbfc4bfd5ab643bb79 100644 (file)
@@ -23,18 +23,14 @@ foreach t : tests
        env: installed_test_env,
        suite: 'gdk')
 
-endforeach
-
-if get_option('install-tests')
-  test_cdata = configuration_data()
-  test_cdata.set('libexecdir', gtk_libexecdir)
-
-  foreach t : tests
-    configure_file(input: '@0@.test.in'.format(t),
+  if get_option('install-tests')
+    test_cdata = configuration_data()
+    test_cdata.set('testexecdir', testexecdir)
+    test_cdata.set('test', t)
+    configure_file(input: 'gdk.test.in',
                    output: '@0@.test'.format(t),
                    configuration: test_cdata,
                    install: true,
                    install_dir: testdatadir)
-  endforeach
-
-endif
+  endif
+endforeach